using System;

namespace octalforty.Syndication.Core.Rss
{
    /// <summary>
    /// Represents a single RSS category.
    /// </summary>
    public sealed class RssCategory
    {
        #region Private Member Variables
        private String domain = String.Empty;
        private String name = String.Empty;
        #endregion

        #region Public Properties
        /// <summary>
        /// Gets or sets a <see cref="String"/> that identifies a categorization taxonomy.
        /// </summary>
        public String Domain
        {
            get { return domain; }
            set { domain = value; }
        }

        /// <summary>
        /// Gets or sets a <see cref="String"/> that contains a forward-slash-separated string that 
        /// identifies a hierarchic location in taxonomy indicated by <see cref="Domain"/>.
        /// </summary>
        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        #endregion

        /// <summary>
        /// Initializes a new instance of <see cref="RssCategory"/> class.
        /// </summary>
        public RssCategory()
        {
        }

        /// <summary>
        /// Initializes a new instance of <see cref="RssCategory"/> class with given properties.
        /// </summary>
        /// <param name="domain"></param>
        /// <param name="name"></param>
        public RssCategory(String domain, String name)
        {
            this.domain = domain;
            this.name = name;
        }
    }
}
